﻿using ETask.Api.Dtos;
using ETask.Api.Models;

namespace ETask.Api.Repositories
{
    /// <summary>
    /// 用户接口
    /// </summary>
    public interface IUserRepository:IRepository<User>
    {
        Task<User> GetByAccount(string account);

        /// <summary>
        /// 根据条件查询（分页）
        /// </summary>
        Task<PagedResult<UserDto>> GetListAsync(UserListParams listParams);

        Task<UserDto> GetByInfoByAccount(string account);
    }
}
